<?php
$goodsid = $_GET["id"];
$goods = mysqli_connect("localhost","root","root","goods");
$res = mysqli_query($goods,"delete from goodsinfo where id = {$goodsid}");

echo $goodsid;
?>